<table class="site_menus">
</table>
<script>
    $(function(){
        $(".site_menus").treegrid({
            url:'../site-menus/loadList.action',
            method:'get',
            fitColumns:true,
            idField:'id',
            treeField:'menuname',
            columns:[[
                {field:'menuname',title:'菜单名称',width:100},
            ]],
            toolbar: [{
                iconCls: 'icon-add',
                handler: function(){alert('编辑按钮')}
            },{
                iconCls: 'icon-edit',
                handler: function(){alert('编辑按钮')}
            },{
                iconCls: 'icon-remove',
                handler: function(){alert('编辑按钮')}
            }],
            fit:true,
            border:false,
            doSize:true
        });
    });
</script>